package com.yoomiito.app.ui.order.detail

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yoomiito.app.R
import com.yoomiito.app.copyClipboard

class OrderInfoJiaMaiCodeAdapter(data:List<String>?) :BaseQuickAdapter<String,BaseViewHolder>(R.layout.item_order_info_1,data){
    override fun convert(helper: BaseViewHolder?, item: String?) {
        helper?.setText(R.id.jiaMaiCodeTv,"激活码：$item")
        helper?.getView<TextView>(R.id.copyCode)?.setOnClickListener {
            item?.copyClipboard(mContext,"复制成功")
        }
    }

}